package com.lz.vo.ly;

import java.util.Date;

import com.lz.entity.MortgageSheet;

import lombok.Data;
@Data
public class MortgageSheetVO {

	//销售单号
	private Integer orderId;
	//金融单号
	private Integer mortgageSheetNo;
	//开单日期
	private Date mortgageSheetDate;
	//开单人
	private String employeeName;
	//单据状态
	private String mortgageSheetState;
	//客户编号
	private Integer customerId;
	//客户名称
	private String customerName;
	//联系电话
	private String customerTel;
	//证件代码
	private String customerCardId;
	//品牌
	private String brand;
	//车系
	private String series;
	//车型
	private String model;
	//配置
	private String configure;
	//颜色
	private String color;
	//VIN
	private String vin;
	//车辆销售价
	private Double price;
	//金融机构
	private String bankName;
	//机构类型
	private String bankType;
	//贷款期限
	private Integer loanTime;
	//贷款金额
	private Double loanMoney;
	//首付款
	private Double downPayments;
	//主机厂贴息
	//集团贴息
	//第三方贴息
	//自付利息
	//服务费
	private Double serviceCharge;
	//费率/利率
	private Double  interestRate;
	//按揭资质
	//是否同意
	//审核意见
	public MortgageSheetVO(MortgageSheet mortgageSheet) {
		this.orderId = mortgageSheet.getOrderId();
		this.mortgageSheetNo = mortgageSheet.getMortgageSheetNo();
		this.mortgageSheetDate = mortgageSheet.getMortgageSheetDate();
		this.employeeName = mortgageSheet.getEmployee().getEmployeeName();
		this.mortgageSheetState = mortgageSheet.getMortgageSheetState();
		this.customerId = mortgageSheet.getCustomer().getCustomerId();
		this.customerName = mortgageSheet.getCustomer().getCustomerName();
		this.customerTel = mortgageSheet.getCustomer().getCustomerTel();
		this.customerCardId = mortgageSheet.getCustomer().getCustomerCardId();
		this.brand = mortgageSheet.getCar().getBrand();
		this.series = mortgageSheet.getCar().getSeries();
		this.model = mortgageSheet.getCar().getModel();
		this.configure = mortgageSheet.getCar().getConfigure();
		this.color = mortgageSheet.getCar().getColor();
		this.vin = mortgageSheet.getCar().getVin();
		this.price = mortgageSheet.getCar().getPrice();
		this.bankName = mortgageSheet.getBank().getBankName();
		this.bankType = mortgageSheet.getBank().getBankType();
		this.loanTime = mortgageSheet.getLoanTime();
		this.loanMoney = mortgageSheet.getLoanMoney();
		this.downPayments = mortgageSheet.getDownPayments();
		this.serviceCharge = mortgageSheet.getServiceCharge();
		this.interestRate = mortgageSheet.getInterestRate();
	}
	
	
}
